<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
//    设置批量填充,因为laravle默认是不允许填多个字段值的,$fillable是允许你填充的字段
//    $guarded是不允许你填充的字段,两者不能共存
//    protected $fillable = [
//        'name', 'email', 'password',
//    ];


//    设置不允许填充的字段
    protected $guarded = [
        "password_confirmation"
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];
}
